package com.tommy.ddp.grid.skin
{
	import com.tommy.ddp.definition.GridSkinFactory;
	
	import flash.display.Bitmap;
	
	import starling.display.DisplayObject;
	import starling.display.Image;
	import starling.textures.Texture;
	
	public class WireNetGridSkin implements IGridSkin
	{
		[Embed(source="../libs/wireNetGridSkin.png")]
		private var cls:Class;
		
		private var _mc:Image;
		
		public function WireNetGridSkin()
		{
			var bmp:Bitmap = new cls();
			_mc = new Image(Texture.fromBitmap(bmp));
			_mc.touchable = false;
		}
		
		public function get type():uint
		{
			return GridSkinFactory.WIRE_NET;
		}
		
		public function get mc():DisplayObject
		{
			return _mc;
		}
		
		public function get nextTypeByClear():uint
		{
			return GridSkinFactory.GLASS;
		}
		
		public function get nextTypeByPunch():uint
		{
			return GridSkinFactory.WIRE_NET;
		}
		
		public function get isAvaliable():Boolean
		{
			return false;
		}
		public function get isCanBefind():Boolean
		{
			return false;
		}
		
		public function addedAnimate():void
		{
		}
		
		public function diposeAnimate():void
		{
		}
		
		public function dispose():void
		{
			cls = null;
			_mc.dispose();
			_mc = null;
		}
	}
}